﻿::http://blogs.msdn.com/sandcastle/archive/2006/07/29/682398.aspx

"C:\Program Files (x86)\Sandcastle\ProductionTools\MRefBuilder.exe" babelfish.dll /out:reflection.org

echo Transform the output

"C:\Program Files (x86)\Sandcastle\ProductionTools\XslTransform.exe" /xsl:"C:\Program Files (x86)\Sandcastle\ProductionTransforms\ApplyVSDocModel.xsl" reflection.org /xsl:"C:\Program Files (x86)\Sandcastle\ProductionTransforms\AddFriendlyFilenames.xsl" /out:reflection.xml

echo Generate a topic manifest

"C:\Program Files (x86)\Sandcastle\ProductionTools\XslTransform.exe" /xsl:"C:\Program Files (x86)\Sandcastle\ProductionTransforms\ReflectionToManifest.xsl" reflection.xml /out:manifest.xml

echo Create an output directory structure

call "C:\Program Files (x86)\Sandcastle\Presentation\vs2005\copyOutput.bat"

echo generate topic files in HTML

"C:\Program Files (x86)\Sandcastle\ProductionTools\BuildAssembler.exe" /config:"C:\Program Files (x86)\Sandcastle\Presentation\vs2005\configuration\sandcastle.config" manifest.xml

echo Generate HTML help project

"C:\Program Files (x86)\Sandcastle\ProductionTools\XslTransform.exe" /xsl:"C:\Program Files (x86)\Sandcastle\ProductionTransforms\ReflectionToChmProject.xsl" reflection.xml /out:Output\test.hhp

echo Generate intermediate table of contents

"C:\Program Files (x86)\Sandcastle\ProductionTools\XslTransform.exe" /xsl:"C:\Program Files (x86)\Sandcastle\ProductionTransforms\createvstoc.xsl" reflection.xml /out:toc.xml 

echo Generate HTML help project information

"C:\Program Files (x86)\Sandcastle\ProductionTools\XslTransform.exe" /xsl:"C:\Program Files (x86)\Sandcastle\ProductionTransforms\TocToChmContents.xsl" toc.xml /out:Output\test.hhc
 
"C:\Program Files (x86)\Sandcastle\ProductionTools\XslTransform.exe" /xsl:"C:\Program Files (x86)\Sandcastle\ProductionTransforms\ReflectionToChmIndex.xsl" reflection.xml /out:Output\test.hhk

echo Compile the Sandcastle target files into a CHM file.

"C:\Program Files (x86)\HTML Help Workshop\hhc.exe" output\test.hhp